package com.company.creature;

import com.company.shop.Weapon;

/**
 * @description:
 * @author: ZhaoYicong
 * @date: Created in 2020/4/26 10:26
 * @version: v1.0
 * @modified By:
 */
public  class Monster extends Creature {
    int type;
    public Monster(String id, String name, int hp, int money,int type) {
        super(id, name, hp, money);
        super.setHplimit(super.getHp());
        this.type=type;
    }



    @Override
    public void uesrArticle(Creature creature,Weapon weapon, Creature targetCraeture) {
        weapon.useWeapon(creature,targetCraeture);
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }
}
